package com.shycloud.mido.opter.mapper;

import com.baomidou.mybatisplus.annotation.SqlParser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.shycloud.mido.opter.api.dto.UDIDSearchDTO;
import com.shycloud.mido.opter.api.entity.StockDeviceInfo;
import com.shycloud.mido.opter.api.vo.DeviceInfoVO;
import com.shycloud.mido.opter.api.vo.UDIDVO;

import org.apache.ibatis.annotations.Param;

public interface StockDeviceInfoMapper extends BaseMapper<StockDeviceInfo> {

	/**
	 * 查询智能追溯列表
	 *
	 * @param udid
	 * @param optPhone
	 * @param optName
	 * @param status
	 * @param type
	 * @param userPhone
	 * @param userName
	 * @param page
	 * @return com.baomidou.mybatisplus.core.metadata.IPage<com.shycloud.mido.opter.api.vo.DeviceInfoVO>
	 * @author nianhua.jiang
	 * @date 2020/9/24 15:48
	 **/
	@SqlParser(filter=true)
	IPage<DeviceInfoVO> getDeviceInfoList(@Param("page") Page page,
										  @Param("udid") String udid,
										  @Param("optPhone") String optPhone,
										  @Param("optName") String optName,
										  @Param("status") String status,
										  @Param("type") String type,
										  @Param("userPhone") String userPhone,
										  @Param("userName") String userName);


	IPage<UDIDVO> getUDIDPage(@Param("page") Page page, @Param("param") UDIDSearchDTO param);
}